Skip to content

Run GitHub test actions on contributor forks.#325

Merged
theengineear merged 1 commit into
mainfrom
test-forks
Sep 23, 2025
Merged

Run GitHub test actions on contributor forks.#325
theengineear merged 1 commit into
mainfrom
test-forks

Conversation

@theengineear

Copy link
Copy Markdown
Collaborator

Previously, the action in “test.yaml” only ran on branch pushes from maintainers. This was mostly fine, but contributors weren’t getting the same feedback about linting, typing, and testing.

Now, all PRs will cause tests to run. Plus, we continue to specifically target our “main” branch updates as a sanity check.

Closes #324.

Previously, the action in “test.yaml” only ran on branch pushes from
maintainers. This was mostly fine, but contributors weren’t getting the
same feedback about linting, typing, and testing.

Now, all PRs will cause tests to run. Plus, we continue to specifically
target our “main” branch updates as a sanity check.

Closes #324.
name: Check Main
on:
push:
branches: [main]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Continue to run tests on main (e.g., after a PR is merged) as a sanity check.

# Run tests on pull requests, including from forks.
name: Check Pull Request
on:
pull_request

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default GitHub will target the opened, synchronize, or reopened types (so we don’t need to write that all out). See pull_request docs.

Comment thread x-template.js
// }
static #removeWithin(node) {
node.replaceChildren()
node.replaceChildren();

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was what caused the lint check to fail. Now that we run all this for PRs — we would expect to catch this sort of thing in review!

@theengineear

Copy link
Copy Markdown
Collaborator Author

FYI @klebba — Small change to make sure we’re running tests on all PRs.

@theengineear theengineear merged commit 6fbba62 into main Sep 23, 2025
1 check passed
@theengineear theengineear deleted the test-forks branch September 23, 2025 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make sure GitHub actions run against collaborator forks.

1 participant